Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-402

Dealing with the '\\' during substitution

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 0.9.10
    • None
    • None
    • None

    Description

      QUOTE
      I'm been unsuccessful at using the RollingFileAppender with a
      FixedWindowRollingPolicy that has this FileNamePattern:

      <FileNamePattern>${user.home}/Client%i.log</FileNamePattern>

      "${user.home}/Client%i.log" gets correctly expanded to "C:
      Documents and
      Settings
      Michel/Client%i.log" when it's passed to the
      FixedWindowRollingPolicy constructor.

      The problem starts once the filename gets parsed by
      ch.qos.logback.core.pattern.parser.Parser: the filename becomes "C:ocuments
      and Settingsichel/Client".

      File rotations then fails (as would be expected) when trying to rename the
      current log to "C:ocuments and Settingsichel/Client1.log"

      Is there a way to configure logback to correctly deal with the "
      " used in
      windows?

      End of quote
      For original report see: http://www.qos.ch/pipermail/logback-user/2008-June/000476.html

      Attachments

        Activity

          People

            logback-dev Logback dev list
            ceki Ceki Gülcü
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: